Results 1 to 3 of 3

Thread: GStreamer; Unable to pause - “”; Error: “No URI set” - MediaPlayer QML Type

  1. #1
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default GStreamer; Unable to pause - “”; Error: “No URI set” - MediaPlayer QML Type

    Tried the following from http://doc.qt.io/qt-5/qml-qtmultimed...r.html#details

    Qt Code:
    1. import QtQuick 2.4
    2. import QtQuick.Window 2.2
    3. import QtMultimedia 5.0
    4.  
    5. Window
    6. {
    7. visible: true
    8. height: 1000
    9. width: 1000
    10.  
    11.  
    12. MediaPlayer {
    13. id: mediaplayer
    14. source: "/home/****/template/v1.avi"
    15. }
    16.  
    17. VideoOutput {
    18. anchors.fill: parent
    19. source: mediaplayer
    20. }
    21.  
    22. MouseArea {
    23. id: playArea
    24. anchors.fill: parent
    25. onPressed: mediaplayer.play();
    26. }
    27. }
    To copy to clipboard, switch view to plain text mode 

    on Ubuntu 14.04.2 LTS \n \l with GStreamer Core Library version 0.10.36

    This gives the error shown in title on click.
    I have confirmed that the file exists.

    What else can be done now?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: GStreamer; Unable to pause - “”; Error: “No URI set” - MediaPlayer QML Type

    Have you tried a file: URI? E.g.
    Qt Code:
    1. file:///home/....
    To copy to clipboard, switch view to plain text mode 
    or
    Qt Code:
    1. Qt.resolvedUrl("/home....");
    To copy to clipboard, switch view to plain text mode 

    Cheers,
    _

  3. The following user says thank you to anda_skoa for this useful post:

    TheIndependentAquarius (1st October 2015)

  4. #3
    Join Date
    Apr 2011
    Posts
    231
    Thanks
    141
    Thanked 6 Times in 5 Posts

    Default Re: GStreamer; Unable to pause - “”; Error: “No URI set” - MediaPlayer QML Type

    I tried the first option in your post and it helped. Thanks.

Similar Threads

  1. unable to play gstreamer in QWidget
    By prkhr4u in forum Qt Programming
    Replies: 1
    Last Post: 26th July 2018, 07:28
  2. Replies: 13
    Last Post: 11th February 2015, 20:37
  3. :-1: error: Package gstreamer-0.10 not found
    By casamensa in forum Newbie
    Replies: 2
    Last Post: 5th July 2012, 14:12
  4. unable to convert from one type to another
    By sachinmcajnu in forum Qt Programming
    Replies: 3
    Last Post: 16th March 2011, 00:34
  5. Unable to define a new type with QVariant
    By max2g in forum Qt Programming
    Replies: 3
    Last Post: 23rd February 2008, 17:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.